package com.woniuxy.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.entity.Coupon;

/**
* @author nanqiao
* @description 针对表【coupon(优惠卷商城)】的数据库操作Service
* @createDate 2025-07-16 10:41:45
*/
public interface CouponService extends IService<Coupon> {

    /**
     * 用户兑换优惠券
     * @param userId 用户ID
     * @param couponId 优惠券ID
     * @return 是否兑换成功
     */
    boolean exchangeCoupon(Integer userId, Integer couponId);
}
